package com.etlmaster.executor.steps.loop;

import java.util.List;






import com.etlmaster.executor.Job;
import com.etlmaster.executor.StepMeta;
import com.etlmaster.executor.annotation.StepInstruction;
import com.etlmaster.executor.steps.control.ControlStep;
/**
 * 循环控制
 * @author MeiKefu
 * @date 2014-9-3
 */
@StepInstruction("for")
public class LoopStep extends ControlStep {

	private LoopStepMeta meta;

	public LoopStep(StepMeta meta) {
		super(meta);
		this.meta = (LoopStepMeta)meta;
	}
	
	public StepMeta getLoopNextStep(Job job) {
		return meta.getLoopNextStep(job);
	}
	
	public List<StepMeta> getEndLoopNextSteps(Job job) {
		return meta.getEndLoopNextSteps(job);
	}
}
